#ifndef __WRFLASH__
#define __WRFLASH__

#include <stdint.h>
#include "pstorage.h"

uint32_t OudmonStorageInit(void);
uint32_t OudmonStorageUpdate(uint8_t *data, uint16_t length, uint16_t offset, uint16_t num);
// uint32_t OudmonStorageStore(uint8_t *data, uint16_t length, uint16_t offset, uint16_t num);
uint32_t OudmonStorageRead(uint8_t *data, uint16_t length, uint16_t offset, uint16_t num);
uint32_t OudmonStorageClear(uint16_t num);
uint32_t oudmon_storage_clear(uint8_t block_num, uint16_t offset, uint16_t length);
uint32_t Flash_IsBusy(void);

uint32_t m_storage_update(uint8_t *data, uint16_t length, uint16_t offset, uint16_t num);
uint32_t flash_get_data_start_addr(void);
#endif
